#ifndef TEST_QYORM_H
#define TEST_QYORM_H


#include "QyOrm/Table.h"

class User : public QyOrm::Table
{
    Q_OBJECT
public:
    TABLE(User)

    PRIMARYKEY(QyOrm::StringField,uid)
    UNIQUE(QyOrm::StringField,pwd)
    NOTNULL(QyOrm::StringField,name)
};

class Info : public QyOrm::Table
{
    Q_OBJECT
public:
    TABLE(Info)

    PRIMARYKEY(QyOrm::StringField, iid)
    FOREIGN(QyOrm::ForeignField, uid, User)
    NOTNULL(QyOrm::StringField, date)
};

#endif // TEST_QYORM_H
